/* 警告框容器 */
.alert-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* 遮罩层 */
.alert-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease;
}

/* 警告框内容 */
.alert-modal {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

/* 标题 */
.alert-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

/* 消息内容 */
.alert-message {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 按钮 */
.alert-btn {
    width: 100%;
    padding: 10px 16px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.alert-btn:hover {
    background: #0052a3;
    opacity: 0.9;
}

.alert-btn:active {
    transform: scale(0.98);
}

/* 不同类型的警告框 */
.alert-info .alert-title {
    color: #1890ff;
}

.alert-success .alert-title {
    color: #52c41a;
}

.alert-warning .alert-title {
    color: #faad14;
}

.alert-error .alert-title {
    color: #ff4d4f;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式 */
@media (max-width: 600px) {
    .alert-modal {
        max-width: calc(100% - 40px);
        margin: 0 20px;
    }
}
